Fix for missing avif code 

imagecreatefromavif and related codes was missing on the switch statement.