Change method for create preview image