Return image dimensions
Using image width and height
Fix JSHint usage
Fix JSHint tips