Fix access denied for image styles that use convert effects on remote images

Refactors the existing fix to check the image style for convert effects and only remove that extension when checking whether the image is in the file_managed table.

Merge request reports

Loading