Fixes preview image extension