Fix for empty images