Unable to view photos, after successfully uploading

Hi, I have installed Tidypics Photo Gallery 1.10.8. I am running Elgg version 1.12.6

Now, whenever anyone uploads a picture, it is shown as no image/white image. When I am trying to open the image by double clicking, it is showing as failed to upload. Please help

I have changed the memory_limit in .htaccess to 150M

and the Maximum file upload size is 5 MB