Discarding images larger than 2048*2048

Discarding images larger than 2048*2048 to prevent memory issues converting the image to bitmap.

Huge images like 10000×5000 can cause memory warnings and crashes on limited memory devices (512MB ram).