Added scaling function to image loading
Started improving docstrings