Add new functions and image load functionality