Fixing pictures bug