fixed some issue with image retrieving from post