@Super_Hippo, When using getObjectsAtOffset(x,y,cls), the x and y offsets are by cells (not by pixels).  If you are using 51 for either the x or the y when you mean 1, it will not work the way you think.
You can use the following for scaling the elephant:
  GreenfootImage image = new GreenfootImage("elephant.png");
// (knowing the width is larger than the height;, else I would have used an 'if' to determine which to use and coded the rest with x values replaced with similar values as y values are using)
double ratio = (double)51/image.getWidth();
image.scale(51, (int)(ratio*image.getHeight()));
GreenfootImage newImg = new GreenfootImage(51, 51);
int y = (newImg.getHeight() - image.getHeight())/2;
newImg.drawImage(image, 0, y);
setImage(newImg); 
          
         
   


