fixing wrong url at image preview
removed debug information