DWT now uses compressed image resolution to determine dimensions