fix for empty images