Photo preview fix