Resize method and checks for pixel bounds