improoved image preview