fixing wrong url at image preview