Image preview fix