A few tweaks and bug fixes.

Corrects white space.
Adds a safety check when fetching items from the pending downloads array.
Use device dimensions when setting max image size.
Remove NSLogs